package cn.codeinn.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.codeinn.common.util.RS;

@RestController
@RequestMapping(value = "/")
public class FallbackController {

	@GetMapping("/fallback")
	public RS fallback() {
		RS rs = new RS();
		rs.set("code", "500");
		rs.set("msg", "服务出现问题，转入网关熔断");
		return rs;
	}

}
